package cn.iocoder.lw.module.core.convert.workorder;

import cn.iocoder.lw.framework.common.pojo.PageResult;
import cn.iocoder.lw.module.core.controller.admin.workorder.vo.workorder.CoreWorkOrderRespVO;
import cn.iocoder.lw.module.core.controller.admin.workorder.vo.workorder.CoreWorkOrderSaveReqVO;
import cn.iocoder.lw.module.core.dal.dataobject.workorder.CoreWorkOrderDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 工单 Convert
 *
 * @author Lw源码
 */
@Mapper
public interface CoreWorkOrderConvert {

    CoreWorkOrderConvert INSTANCE = Mappers.getMapper(CoreWorkOrderConvert.class);

    CoreWorkOrderDO convert(CoreWorkOrderSaveReqVO bean);

    CoreWorkOrderRespVO convert(CoreWorkOrderDO bean);

    List<CoreWorkOrderRespVO> convertList(List<CoreWorkOrderDO> list);

    PageResult<CoreWorkOrderRespVO> convertPage(PageResult<CoreWorkOrderDO> page);

}